<script lang="ts" setup>
import { reactive } from 'vue'

// do not use same name with ref
const form = reactive({
    name: '',
    region: '',
    date1: '',
    date2: '',
    delivery: false,
    type: [],
    resource: '',
    desc: '',
})

const onSubmit = () => {
    console.log('submit!')
}
</script>


<template>
    <h1 style="text-align: center;">租售工具2</h1>
    <div class="container">
        <el-form :model="form" label-width="auto" style="max-width: 600px">
            <el-form-item class="activityName" label="活动名：">
                <el-input v-model="form.name" />
            </el-form-item>


            <el-form-item class="activityNameTwo" label="Activity zone">
                <el-select v-model="form.region" placeholder="please select your zone">
                    <el-option label="Zone one" value="shanghai" />
                    <el-option label="Zone two" value="beijing" />
                </el-select>
            </el-form-item>

        </el-form>
    </div>
</template>

<style scoped>
.container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.container .activityName {
    flex-shrink: 6;
    order: 6;
    flex-grow: 2;
    flex-basis: 600px;
    align-self: flex-end;
}

.container .activityNameTwo {
    /* flex-shrink:6 !important;
        order: 2 !important;
        flex-grow: 6 !important; */
    align-self: flex-end;
}
</style>